package org.wjw.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class User {
    //作者id
    private Long id;
    //作者
    private String username;
    //密码
    @JsonIgnore
    private String password;

    // 如果这个属性为1，表示当前用户是博客的作者
    private int isAuthor;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", isAuthor=" + isAuthor +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getIsAuthor() {
        return isAuthor;
    }

    public void setIsAuthor(int isAuthor) {
        this.isAuthor = isAuthor;
    }
}
